import request from '@/utils/request'



export function getStoreList(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/store/getList',
    method: 'post',
    data: query
  })
}   

export function saveStore(query) {
  return request({
    url: '/supply/admin/store/save',
    method: 'post',
    data: query
  })
}

export function copyStore(query) {
  return request({
    url: '/supply/admin/store/copy',
    method: 'post',
    data: query
  })
}

export function removeStore(query) {
  return request({
    url: '/supply/admin/store/remove',
    method: 'post',
    data: query
  })
}
export function getStoreDetail(query) {
  if(query != undefined){
    query = JSON.parse(JSON.stringify(query))
  }
  return request({
    url: '/supply/admin/store/getDetail',
    method: 'post',
    data: query
  })
}